package com.yanqu.road.server.cmd.activity.dunhuangshiku;

import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.activity.dunhuangshiku.DunHuangShiKuMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.GameProtocol;

/**
 * @Description
 * @Author cwq
 * @Data 2021/4/20 22:08
 */
@Cmd(code = GameProtocol.S_DUN_HUANG_SHI_KU_EXIT, desc = "敦煌石窟退出活动")
public class DunHuangShiKuExitCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        DunHuangShiKuMgr.removeActivity(player);
    }

    @Override
    public void sendData(GamePlayer player) {
    }
}
